package com.zd.composedemo.ui.viewmodel

import androidx.compose.runtime.mutableStateListOf
import androidx.lifecycle.ViewModel
import com.zd.composedemo.ui.compose.MessageBean
import kotlin.random.Random

class MainViewModel : ViewModel() {
    val itemDatas = mutableStateListOf<MessageBean>().apply {
        repeat(20) {
            add(
                MessageBean(
                    id = it,
                    "今天吃了吗？${Random.nextBoolean()}",
                    "人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌人是铁饭是钢，一顿不吃饿得慌"
                )
            )
        }
    }
}